Skip to content

Linux follow Steam icon standards, and retry different CDNs#6

Open
PseudoResonance wants to merge 1 commit intoayesc9000:masterfrom
PseudoResonance:master
Open

Linux follow Steam icon standards, and retry different CDNs#6
PseudoResonance wants to merge 1 commit intoayesc9000:masterfrom
PseudoResonance:master

Conversation

@PseudoResonance
Copy link
Copy Markdown
Contributor

@PseudoResonance PseudoResonance commented Mar 27, 2026

Fixes #5 by properly implementing GTK icon standards and following the method that Steam uses on game install.

  1. Use GTK API to search for valid icons in all valid directories instead of naïve method of searching only 1 directory.
  2. If no icon path is specified, use the GTK hicolor icon pack at $HOME/.local/share/icons/hicolor to store icons in variable resolutions (ex: under 16x16/apps, 32x32/apps, and so on), otherwise store icon as simple PNG in supplied directory.
  3. Force refresh icon cache before and after

Additionally, cycle through known CDN URLs instead of a single hard coded option for in case one is ever retired.

Edit: I also changed the "Shortcut doesn't appear to be a Steam shortcut" message to be blue, because previously, it would blend in with the "Icon missing, valid Steam game" message and made it a little more difficult to see which icons were really being detected as missing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Linux icons not stored in the same location as official Steam icons

1 participant